# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=xsecurelock
pkgver=1.9.0
pkgrel=1
pkgdesc="X11 screen lock utility with security in mind"
url="https://github.com/google/xsecurelock"
arch="all"
license="Apache-2.0"
options="!check" # no test suite
makedepends="
	libx11-dev
	libxcomposite-dev
	libxext-dev
	libxfixes-dev
	libxft-dev
	libxmu-dev
	libxrandr-dev
	libxscrnsaver-dev
	linux-pam-dev
	xorgproto
	"
subpackages="$pkgname-doc"
source="https://github.com/google/xsecurelock/releases/download/v$pkgver/xsecurelock-$pkgver.tar.gz"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--with-pam-service-name=system-login
	make GIT_VERSION="$pkgver"
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
23a3c0ac6302bf9550f26fd7a16034dc19899d2523e2211040332cc7ffd14927b9b6af7fdd577ab65e2a5f5c7d0b2b7156b1e2812d40bb4dc0d2ca04c6fc53cc  xsecurelock-1.9.0.tar.gz
"
